/*    */ package base;
/*    */ 
/*    */ public class StatusVeiculo
/*    */ {
/*    */   private Integer idStatusVeiculo;
/*    */   private String descricao;
/*    */   private static final int DISPONIVEL = 1;
/*    */   private static final int RESERVADO = 2;
/*    */   private static final int OCUPADO = 3;
/*    */   private static final int MANUTENCAO = 4;
/*    */ 
/*    */   public StatusVeiculo(Integer id)
/*    */   {
/* 15 */     if (id == new Integer(1))
/* 16 */       this.descricao = "Disponível";
/* 17 */     else if (id == new Integer(2))
/* 18 */       this.descricao = "Reservado";
/* 19 */     else if (id == new Integer(3))
/* 20 */       this.descricao = "Ocupado";
/* 21 */     else if (id == new Integer(4)) {
/* 22 */       this.descricao = "Manutenção";
/*    */     }
/* 24 */     this.idStatusVeiculo = id;
/*    */   }
/*    */ 
/*    */   public String getDescricao() {
/* 28 */     return this.descricao;
/*    */   }
/*    */ 
/*    */   public void setDescricao(String descricao) {
/* 32 */     this.descricao = descricao;
/*    */   }
/*    */ 
/*    */   public Integer getIdStatusVeiculo() {
/* 36 */     return this.idStatusVeiculo;
/*    */   }
/*    */ 
/*    */   public void setIdStatusVeiculo(Integer idStatusVeiculo) {
/* 40 */     this.idStatusVeiculo = idStatusVeiculo;
/*    */   }
/*    */ }

/* Location:           C:\apache-tomcat-6.0.35\webapps\sistrans\WEB-INF\classes\
 * Qualified Name:     base.StatusVeiculo
 * JD-Core Version:    0.6.2
 */